json.array!(@cars) do |car|
  json.extract! car, :id, :name, :brand, :version_main, :version_sub, :plate_number, :attached, :engine_number, :frame_number, :register_date, :auto_type, :color, :owner_name, :owner_mobile, :inspection_peroid_of_validity
  json.url car_url(car, format: :json)
end
